package com.example.cc.common.dto;

import com.example.cc.common.enums.ConfigActionEnum;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * 配置变更事件消息
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class ChangeEventMessage implements Serializable {

    private static final long serialVersionUID = 8921557550078397638L;

    private String key;

    // 配置变更的动作
    private ConfigActionEnum action;

    private Object value;

}
